<template>
    <button @click="open">取色</button>
    <h2>颜色：<span :style="{color: sRGBHex}">{{sRGBHex}}</span></h2>
</template>
<script setup lang="ts">
import { useEyeDropper } from '@vueuse/core'
const { open, sRGBHex } = useEyeDropper()
</script>